/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ah;

import com.google.gson.Gson;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *
 * @author Ch12211
 */
public class InputController {

    public String[] readFile(String filename) throws IOException {
        FileInputStream fstream = new FileInputStream(filename);
        DataInputStream in = new DataInputStream(fstream);
        BufferedReader br = new BufferedReader(new InputStreamReader(in));
        String[] strLine = new String[999999];
        //Read File Line By Line
        int i = 0;
        while ((strLine[i] = br.readLine()) != null) {
            // Print the content on the console
            
            i++;
        }
        //Close the input stream
        System.out.println(strLine[100]);
        in.close();
        return strLine;
    }
    public String[] createAuctions(String[] strLine){
        Gson gson = new Gson();
        String[] s = new String[10];
        return s;
    }
}
